package org.databasefacade.table;

import java.util.ArrayList;

public class ConstraintKeyList {
	private ArrayList keys = new ArrayList();
	
	public void addKey(ConstraintKey key) {
		keys.add(key);
	}
	
	public ConstraintKey getKey(int i) {
		return (ConstraintKey) keys.get(i);
	}
	
	public int size() {
		return keys.size();
	}
	
	// TBD
	public ConstraintKeyList getCopy() {
		ConstraintKeyList newList = new ConstraintKeyList();
		for (int i=0; i < keys.size(); i++) {
			newList.addKey(getKey(i).getCopy());
		}
		return newList;
	}
}
